package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * (Role)实体类
 *
 * @author makejava
 * @since 2024-01-27 09:56:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName (value = "role")
public class Role implements Serializable {
    private static final long serialVersionUID = 237620635106058642L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("role_name")
    private String roleName;


    @TableField(exist = false)
    private List<Menu>menus;//一个角色可能有多个权限（菜单）



}

